<template>
  <div class="content-midddle-right align-self-start" v-if="keywordList.length">
    <h3 class="new-info-box-title flex-center-wrap flex-justify-between">
      大家都在搜
    </h3>

    <div class="keyword-box flex-wrap flex-multi-row m-t-24">
      <a
        :href="parseFullPath(keywordItem.path)"
        target="_blank"
        class="keyword-item"
        v-for="(keywordItem, index) in keywordList"
        :key="index"
      >
        {{ keywordItem.name }}
      </a>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    keywordList: {
      type: Array,
      default: () => []
    }
  },
  data() {
    return {}
  },
  methods: {}
}
</script>

<style scoped>
.content-midddle-right {
  padding: 20px 0 6px;
  border-radius: 12px;
  background: #ffffff;
  white-space: normal;
}
.content-midddle-right:first-of-type {
  margin-top: 0;
}
.new-info-box-title {
  padding-left: 16px;
  height: 24px;
  font-size: 22px;
  font-weight: 600;
  color: #383838;
  line-height: 24px;
  border-left: 4px solid #3480ff;
}
.keyword-box {
  padding-right: 20px;
  padding-left: 4px;
  padding-bottom: 8px;
}
.keyword-item {
  margin-left: 16px;
  margin-bottom: 16px;
  padding: 8px 16px;
  background: #f7f7f7;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 400;
  color: #383838;
  line-height: 20px;
  text-decoration: none;
}
</style>
